﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using U9API.Pub;

namespace U9API.Controllers
{
    public class APIRequest
    {
        public string orgcode;
        public string primarykey;
        public int operation;
        public string data;
        public string csource;

        public APIRequest(HttpContextBase context)
        {
            this.orgcode = context.Request["orgcode"].ObjToString();
            this.primarykey = context.Request["primarykey"].ObjToString();
            this.operation = context.Request["operation"].ObjToInt32();
            this.data = context.Request["data"].ObjToString();
            this.csource = context.Request["csource"].ObjToString();
        }
    }
}